/*
 * Copyright (C) 2004-2017 7dub.cn All rights reserved Author: caozhongsheng
 * Date: 2017年1月9日
 */
package cn.dub.scarecrow.web.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.dub.scarecrow.common.entity.User;
import cn.dub.scarecrow.service.IActivityService;

@RequestMapping("/user")
@RestController
public class UserController extends BaseController {

    @Resource
    private IActivityService actService;

    @RequestMapping("/all")
    public List<User> allUser() {
        return this.actService.getAllUser();
    }
}
